package com.freejava.test_spring_security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SwagController {

    @GetMapping("/user/sayHi")
    public String myUser() {
        return "Hi, user";
    }

    @GetMapping("/admin/hello")
    public String admin() {
        return "admin page";
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello, man";
    }
}
